import { rootFilePath } from "../constant";
import FetchHelper from "../helper/fetch-helper";

export default class ZoneApi {
    static async root() {
        const data = await FetchHelper.getJson(`${rootFilePath}/datas/51.json`)
        return data.features.find(feature => {
            return feature.properties.code === '5115'
        })
    }
    static async children() {
        const data = await FetchHelper.getJson(`${rootFilePath}/datas/5115.json`)
        return data
    }
}